/*
 * @Author: zhaoxiangyu@
 * @Date: 2021-11-10 17:13:24
 * @LastEditors: 647355931@qq.com
 * @LastEditTime: 2021-11-10 17:13:25
 * @Description: file content
 */
function isObject(val) {
  return val != null && typeof val === 'object' && Array.isArray(val) === false;
}

export default function getCssModule(classes, module) {
  if (isObject(module) && Array.isArray(classes)) {
    return classes.map((item) => module[item]).join(' ');
  }
  return classes;
}
